package com.mr.orderclient.dao;


import com.mr.orderclient.entity.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @ClassName: OrderMasterDAO
 * @User MRui
 * @Description: TODO描述：订单DAO
 * @date 2018.09.19 23:38
 */
@Repository
public interface OrderMasterDAO extends JpaRepository<OrderMaster,String> {
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
    OrderMaster findByBuyerOpenidAndOrderId(String buyerOpenid, String orderId);
    OrderMaster findByOrderId(String orderId);
}
